package com.teach.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.teach.entity.PhotoOrderDetail;

public interface PhotoOrderDetailMapper {
    int deleteByPrimaryKey(Long photoOrderId);

    int insert(PhotoOrderDetail record);

    int insertSelective(PhotoOrderDetail record);

    PhotoOrderDetail selectByPrimaryKey(Long photoOrderId);

    int updateByPrimaryKeySelective(PhotoOrderDetail record);

    int updateByPrimaryKey(PhotoOrderDetail record);
    
    @Select("SELECT photo_order_id FROM `photo_order_detail` where photo_shop_id=#{shopId}")
    List<Long> selectWriter(@Param("shopId")String shopId);
}